package com.cdcas;

public class CloneTest {

    public static void main(String[] args) throws CloneNotSupportedException {
        Emp empA = new Emp("aaa","工程师");
        Emp empB = (Emp) empA.clone();
        empB.setEname("bbb");
        empA.setJob("销售");
        System.out.println(empA);
        System.out.println(empB);
    }
}
